import java.util.Scanner;

public class Main {
    public static int L(String str){
        if (str.length()<=4){
            return 5;
        } else if (str.length()<=7){
            return 10;
        } else {
            return 25;
        }
    }

    public static int A(String str){
        int[] x = new int [5];
        for (int i=0;i<str.length();i++){
            if (str.charAt(i)>='a'&&str.charAt(i)<='z'){
                x[0]=10;
            }
            if (str.charAt(i)>='A'&&str.charAt(i)<='Z'){
                x[1]=10;
            }

            if (str.charAt(i)>='0'&&str.charAt(i)<='9'){
                x[2]+=10;
            }

            if ((str.charAt(i)>=0x21&&str.charAt(i)<=0x2F) || (str.charAt(i)>=0x3A&&str.charAt(i)<=0x40) ||
                     (str.charAt(i)>=0x5B&&str.charAt(i)<=0x60) || (str.charAt(i)>=0x7B&&str.charAt(i)<=0x7E)){
                x[3]+=10;
            }
        }

        if (x[2]>20)  x[2]=20;
        if (x[3]>25)  x[3]=25;
        if (x[3]==20) x[3]=25;

        if (x[0]!=0&&x[1]!=0&&x[2]!=0&&x[3]!=0){
            x[4]=5;
        } else if ((x[0]!=0&&x[2]!=0&&x[3]!=0)||(x[1]!=0&&x[2]!=0&&x[3]!=0)){
            x[4]=3;
        } else if ((x[0]!=0&&x[2]!=0)||(x[1]!=0&&x[2]!=0)){
            x[4]=2;
        } else {
            x[4]=0;
        }

        int ret = 0;
        for (int i=0;i<5;i++){
            ret+=x[i];
        }

        return ret;

    }

    public static  void P(int num){
        if (num>=90){
            System.out.println("VERY_SECURE");
        } else if (num>=80){
            System.out.println("SECURE");
        }else if (num>=70){
            System.out.println("VERY_STRONG");
        }else if (num>=60){
            System.out.println("STRONG");
        }else if (num>=50){
            System.out.println("AVERAGE");
        }else if (num>=25){
            System.out.println("WEAK");
        }else if (num>=0){
            System.out.println("WERY_WEAK");
        }
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        int num = A(str) + L(str);
        P(num);
    }
}
